<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  添加
@author WeiXiaoJin
@since 2020-01-19 20:38:09
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">dfsGroupName</label>
	<div class="col-md-9">
				<input class="form-control" id="dfsGroupName" type="text" name="dfsGroupName" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">downloadNum</label>
	<div class="col-md-9">
				<input class="form-control" id="downloadNum" type="text" name="downloadNum" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">downloadPwd</label>
	<div class="col-md-9">
				<input class="form-control" id="downloadPwd" type="text" name="downloadPwd" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">expirationDate</label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="laydate-demo-3" 
			       name="expirationDate" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="3">
		</div>
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件扩展名</label>
	<div class="col-md-9">
				<input class="form-control" id="fileExt" type="text" name="fileExt" placeholder="文件扩展名">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件标识</label>
	<div class="col-md-9">
				<input class="form-control" id="fileFlag" type="text" name="fileFlag" placeholder="文件标识">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件名称</label>
	<div class="col-md-9">
				<input class="form-control" id="fileName" type="text" name="fileName" placeholder="文件名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件长度</label>
	<div class="col-md-9">
				<input class="form-control" id="fileSize" type="text" name="fileSize" placeholder="文件长度">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">地址链接</label>
	<div class="col-md-9">
				<input class="form-control" id="fileUrl" type="text" name="fileUrl" placeholder="地址链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">文件源</label>
	<div class="col-md-9">
				<input class="form-control" id="filesource" type="text" name="filesource" placeholder="文件源">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">是否公开</label>
	<div class="col-md-9">
				<input class="form-control" id="isPublic" type="text" name="isPublic" placeholder="是否公开">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">保存类型</label>
	<div class="col-md-9">
				<input class="form-control" id="saveType" type="text" name="saveType" placeholder="保存类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">阿里云链接</label>
	<div class="col-md-9">
				<input class="form-control" id="urlAlioss" type="text" name="urlAlioss" placeholder="阿里云链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">本地磁盘链接</label>
	<div class="col-md-9">
				<input class="form-control" id="urlDisk" type="text" name="urlDisk" placeholder="本地磁盘链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">fastdfs链接</label>
	<div class="col-md-9">
				<input class="form-control" id="urlFastdfs" type="text" name="urlFastdfs" placeholder="fastdfs链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">urlPaxossurlre</label>
	<div class="col-md-9">
				<input class="form-control" id="urlPaxossurlre" type="text" name="urlPaxossurlre" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">七牛链接</label>
	<div class="col-md-9">
				<input class="form-control" id="urlQiniu" type="text" name="urlQiniu" placeholder="七牛链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">urlbfs</label>
	<div class="col-md-9">
				<input class="form-control" id="urlbfs" type="text" name="urlbfs" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">urlmongodb</label>
	<div class="col-md-9">
				<input class="form-control" id="urlmongodb" type="text" name="urlmongodb" placeholder="">
			</div>
</div>
																									</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
dfsGroupName: {required:true}
,downloadNum: {required:true,number:true}
,downloadPwd: {required:true}
,expirationDate: {required:true,date:true}
,fileExt: {required:true}
,fileFlag: {required:true}
,fileName: {required:true}
,fileSize: {required:true}
,fileUrl: {required:true}
,filesource: {required:true}
,isPublic: {required:true}
,saveType: {required:true}
,urlAlioss: {required:true}
,urlDisk: {required:true}
,urlFastdfs: {required:true}
,urlPaxossurlre: {required:true}
,urlQiniu: {required:true}
,urlbfs: {required:true}
,urlmongodb: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){	
				var saveUrl = ctx+"base/storage/storageFileHistory/save" ;
				$.operate.save(saveUrl , addForm.serialize());
			}
	    }
	</script>

</body>
</html>


